package rd.android.hardcore.engine.android 
{
	import flash.system.Capabilities;
	
	/**
	 * ...
	 * @author Fazermokeur
	 */
	public class Utils
	{
		
		public function Utils() 
		{
			
		}
		
		/**
		 * Convertir pouces en pixels.
		 * @param	pouces
		 * @return	pixels
		 */
		static public function inchesToPixels (pouces: Number): uint
		{
			return Math.round (Capabilities.screenDPI * pouces);
		}
		
		/**
		 * traceConvertir millimètre en pixels
		 * @param	mm
		 * @return	pixel
		 */
		static public function mmToPixels (mm: Number): uint 
		{
			return Math.round(Capabilities.screenDPI * (mm / 25.4));
		}
	}

}